﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FBGraph.Models;
using FBGraph.Web.Mvc;

namespace FBGraph.Demos.AspNetMvc.Controllers
{
    [HandleError]
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            var us = FbContext.Users.Get("daniel.schaffer", "irina.schaffer");
            ViewData["Message"] = "Hello, " + us["daniel.schaffer"].Name + " and " + us["irina.schaffer"].Name + "!";            
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
